package com.easy.system.util;

import flexjson.JSONSerializer;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-7-26
 * Time: 下午3:04
 * To change this template use File | Settings | File Templates.
 */
public class MessageDto {
    private boolean success;
    private String message;

    public MessageDto() {
        this.success = true;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public String toString(){
        return new JSONSerializer().exclude("*.class").serialize(this);
    }
}
